package com.msw.http;

import org.apache.http.client.fluent.Request;

import java.io.IOException;

/**
 * TODO：一句话描述类的含义
 *
 * @Author hadoop
 * @Date 2016/3/20.
 */

public class HttpClientMain {

    public static void main(String[] args) {
        try {
            System.out.println(
                    Request.Get("https://www.baidu.com").execute().returnContent().asString());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

